package com.zsc.shixun.model.usermanage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 用户管理VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Data
public class UserManageVO {
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱账号")
    private String email;

    @ApiModelProperty(value = "学历")
    private String education;

    @ApiModelProperty(value = "粉丝数")
    private Long followedNumber;

    @ApiModelProperty(value = "关注数")
    private Long followingNumber;

    @ApiModelProperty(value = "收藏数")
    private Long collectNumber;

    @ApiModelProperty(value = "学校")
    private String school;

    @ApiModelProperty(value = "个人简介")
    private String content;

    @ApiModelProperty(value = "角色id，关联b_role.id")
    private Long roleId;

    @ApiModelProperty(value = "头像")
    private String img;

    private Boolean valid;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//数据库导出页面时json格式化
    private Date updateTime;
}
